package com.threeti.mecool.common.resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.threeti.mecool.common.resource.core.ContentRepoLocalAdapter;

public class ContentRepoFactory {
  private static Logger logger = LoggerFactory.getLogger(ContentRepoFactory.class);

	public static ContentRepo beginLocal() {
		return new ContentRepoLocalAdapter();
	}

//	public static ContentRepo begin(String username, String password) {
//		return begin(username, password, null);
//	}

//	public static ContentRepo begin(String username, String password, ProxySelector proxy) {
//		try {
//			return new ContentRepoWebDavAdapter(SardineFactory.begin(username, password));
//		} catch (SardineException e) {
//			logger.error("无法建立远程连接");
//		}
//		return null;
//	}
}
